<template>
  <div class="pages_content table">
    <el-container>
      <el-header>
        <breaDcrumb />
      </el-header>
      <el-main>
        <div class="header_right" @click="showCardNav = !showCardNav">
          <div class="title">搜索</div>
          <div>
            <div :class="{ 'arrowTransform': !showCardNav, 'arrowTransformReturn': showCardNav}">
              <i style="margin-right: 5px" class="el-icon-arrow-down"></i>
            </div>
          </div>
        </div>
        <div v-show="showCardNav" class="hr"></div>
        <el-collapse-transition>
          <div v-show="showCardNav">
            <div class="search">
              <span style="margin-bottom:10px;display: inline-block;">
                <span style="margin-right: 12px;">车辆编码</span>
                <el-input v-model="tableParam.code" style="width: 240px;" placeholder="请输入" clearable @keyup.enter.native="gettableData()" />
              </span>
              <span style="margin-left: 24px;">
                <span style="margin-right: 12px;">所属单位</span>
                <el-input v-model="tableParam.company" style="width: 240px;" placeholder="请输入" clearable @keyup.enter.native="gettableData()" />
              </span>
              <span style="margin-left: 24px;">
                <span style="margin-right: 12px;">车辆类型</span>
                <el-select v-model="tableParam.carTypeId" style="width: 240px;" placeholder="请选择">
                  <el-option v-for="item in carTypelist" :key="item.id" :label="item.itemName" :value="item.id"></el-option>
                </el-select>
              </span>
              <span style="margin-left: 24px;">
                <span style="margin-right: 12px;">更新时间</span>
                <el-date-picker v-model="startTimDateEndTimDate" unlink-panels type="datetimerange" value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期" end-placeholder="结束日期" @change="tableParam.createTime=startTimDateEndTimDate?startTimDateEndTimDate[0]:'',tableParam.updateTime=startTimDateEndTimDate?startTimDateEndTimDate[1]:''"></el-date-picker>
              </span>
              <el-button icon="el-icon-search" size="medium" class="bottom_all but1" @click="(tableParam.page = 1), gettableData()">查 询</el-button>
              <el-button size="medium" class="bottom_all_two" @click="init()">重 置</el-button>
              <el-button size="small" style="margin-left: 10px;" class="bottom_all_two" @click="tableParamType = true">高级搜索</el-button>
            </div>
          </div>
        </el-collapse-transition>
        <div class="hr"></div>
        <div class="card">
          <div class="card_nav">
            <div>
              <el-button v-if="ButtonList.findIndex(res=>(res.buttonValue=='TIANJIA'))!==-1" size="small" class="bottom_all" style="margin-left: 0;" @click="pagesaddFromDate()">
                <i class="icon iconfont iconicon_button_add" style="font-size: 12px;"></i>
                添加
              </el-button>
              <el-button v-if="ButtonList.findIndex(res=>(res.buttonValue=='RIYONG'))!==-1" size="small" class="bottom_three" @click="Update(1)">
                <i class="icon iconfont iconicon_button_startuse" style="font-size: 12px;"></i>
                启用
              </el-button>
              <el-button v-if="ButtonList.findIndex(res=>(res.buttonValue=='JINYONG'))!==-1" size="small" class="bottom_four" @click="Update(0)">
                <i class="icon iconfont iconicon_button_disable1" style="font-size: 12px;"></i>
                禁用
              </el-button>
              <!-- 	<el-button size="small" class="botton_five" @click="showtype = true">车辆类型</el-button> -->
            </div>
            <div>
              <el-dropdown :hide-on-click="false" trigger="click" style="margin: 0 20px;">
                <el-link :underline="false">
                  <span class="el-icon--left">
                    <i class="iconfont iconicon_button_filtrate"></i>
                  </span>
                  筛选
                </el-link>
                <el-dropdown-menu slot="dropdown">
                  <el-dropdown-item v-for="(item, index) in table" :key="index">
                    <el-checkbox v-model="item.status">{{ item.label }}</el-checkbox>
                  </el-dropdown-item>
                </el-dropdown-menu>
              </el-dropdown>
              <el-link v-if="ButtonList.findIndex(res=>(res.buttonValue=='DAOCHU'))!==-1" :underline="false" @click="load()">
                <span class="el-icon--left">
                  <i class="iconfont iconicon_button_export1"></i>
                </span>
                导出
              </el-link>
            </div>
          </div>
          <div v-loading="tableLoading" class="card_info" :style="style">
            <el-table :header-cell-style="{ background: '#f3f6f9' }" :cell-style="{ borderRight: 'none' }" border stripe style="width:100%" :data="tableData" tooltip-effect="dark" @selection-change="handleSelectionChange">
              <el-table-column align="center" type="selection"></el-table-column>
              <template v-for="(item, index2) in table">
                <el-table-column v-if="item.status" :key="index2" :label="item.label" align="center" :min-width="item.width" :fixed=" (item.label =='操作'||item.label =='二维码')?'right':false">
                  <template slot-scope="scope">
                    <span v-if="scope.row.enable == 0 && item.label == '状态'" style="color:#969799;">禁用</span>
                    <span v-if="scope.row.enable == 1 && item.label == '状态'" style="color:#00A754;">启用</span>
                    <el-button v-if="item.label == '操作'&&ButtonList.findIndex(res=>(res.buttonValue=='XIUGAI'))!==-1" class="bottom_one" size="mini" @click="pagesupdateFromDate(scope.row)">
                      <i class="icon iconfont iconicon_button_modification" style="font-size: 12px;"></i>
                      修改
                    </el-button>
                    <el-button v-if="item.label == '操作'&&ButtonList.findIndex(res=>(res.buttonValue=='SHEBEIWEIHU'))!==-1" class="bottom_one" size="mini" @click="maintenance(scope.row)">设备维护</el-button>
                    <div v-if="item.label == '二维码'&&scope.row.quickMarkUrl&&ButtonList.findIndex(res=>(res.buttonValue=='EWEIM'))!==-1" class="table_link">
                      <a :href="'/file/' +scope.row.quickMarkUrl" download>下载二维码</a>
                    </div>
                    <span v-if="item.label !== '操作' && item.label !== '状态' && item.label !== '使用状况' && item.label !== '二维码'">{{ scope.row[item.prop] }}</span>
                  </template>
                </el-table-column>
              </template>
            </el-table>
          </div>
          <!-- <div class="card_bottom">
            <div class="card_bottom_left">
              <div class="top_page_totle">总共{{ total }}条</div>
              <el-pagination :current-page.sync="tableParam.page" :page-size="tableParam.pageSize" layout="prev, pager, next, jumper" :total="total" @current-change="gettableData()"></el-pagination>
            </div>
            <div>
              <el-button size="mini" icon="el-icon-refresh-right" class="bottom_all_two" @click="gettableData">刷新</el-button>
            </div>
          </div> -->
        </div>
      </el-main>
      <div class="card_bottom">
        <div class="card_bottom_left">
          <div class="top_page_totle">总共{{ total }}条</div>
          <el-pagination :current-page.sync="tableParam.page" :page-size="tableParam.pageSize" layout="prev, pager, next, jumper" :total="total" @current-change="gettableData()"></el-pagination>
        </div>
        <div>
          <el-button size="mini" icon="el-icon-refresh-right" class="bottom_all_two" @click="gettableData">刷新</el-button>
        </div>
      </div>
    </el-container>
    <!-- 添加修改 -->
    <el-dialog v-dialogDrag :visible.sync="addDialog" width="580px" :close-on-click-modal="false" :before-close="resetFromDate">
      <span slot="title" class="dialog-title">{{ addDialogTitle }}</span>
      <div class="dialoginfo">
        <el-form ref="reffromDate" style="padding: 20px;" :rules="rules" :inline="true" :model="fromDate" label-width="110px" hide-required-asterisk>
          <el-form-item prop="plateNumber">
            <span slot="label" style="color:  #FF0000 ;">车牌号</span>
            <el-input v-model="fromDate.plateNumber" placeholder="请输入" clearable></el-input>
          </el-form-item>
          <el-form-item prop="carTypeId">
            <span slot="label" style="color:  #FF0000 ;">车辆类型</span>
            <el-select v-model="fromDate.carTypeId" placeholder="请选择">
              <el-option v-for="item in carTypelist" :key="item.id" :label="item.itemName" :value="item.id"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item v-if="UserInfo.adminStatus == 1" prop="companyId">
            <span slot="label" style="color:  #FF0000 ;">所属单位</span>
            <el-select ref="selection1" v-model="fromDate.companyId" placeholder="请选择" @change="setstationIdlist(fromDate.companyId),$nextTick(()=>{fromDate.company = $refs.selection1.selectedLabel}),fromDate.stationId=''">
              <el-option v-for=" item in companylist" :key="item.id" :label="item.name" :value="item.id">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item prop="stationId">
            <span slot="label" style="color:#FF0000 ;">站点名称</span>
            <el-select ref="selection2" v-model="fromDate.stationId" placeholder="请选择" @change="get_simple_organizationFun(fromDate.stationId),$nextTick(()=>{fromDate.stationName = $refs.selection2.selectedLabel})">
              <el-option v-for="item in stationIdlist" :key="item.id" :label="item.name" :value="item.id"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="状态" prop="enable">
            <el-radio-group v-model="fromDate.enable">
              <el-radio :label="1">启用</el-radio>
              <el-radio :label="0">禁用</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item prop="maxLoad">
            <span slot="label">最大承重</span>
            <el-input v-model="fromDate.maxLoad" placeholder="请输入" onkeypress='return( /\d|\./.test(String.fromCharCode(event.keyCode)))' @change="fromDate.maxLoad=$regExp.checkNum3(fromDate.maxLoad)" @input="fromDate.maxLoad=$regExp.checkNum(fromDate.maxLoad)" @blur="fromDate.maxLoad=$regExp.blurCheckNum(fromDate.maxLoad)">
              <template slot="append">方</template>
            </el-input>
          </el-form-item>
          <el-form-item prop="tare">
            <span slot="label">皮重</span>
            <el-input v-model="fromDate.tare" placeholder="请输入" onkeypress='return( /\d|\./.test(String.fromCharCode(event.keyCode)))' @input="fromDate.tare=$regExp.checkNum(fromDate.tare)" @blur="fromDate.tare=$regExp.blurCheckNum(fromDate.tare)">
              <template slot="append">吨</template>
            </el-input>
          </el-form-item>
        </el-form>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button class="bottom_all_two" @click="resetFromDate">取 消</el-button>
        <el-button class="bottom_all" style="margin-left: 24px;" @click="QueryPlateNumber()">确 定</el-button>
      </span>
    </el-dialog>
    <!-- 设备维护 -->
    <el-dialog v-dialogDrag :visible.sync="maintenanceDialog" width="1072px" :close-on-click-modal="false" :before-close="resetOtherFromDate">
      <span slot="title" class="dialog-title">设备维护</span>
      <div class="dialogOtherinfo">
        <div class="nav-one" style="min-height: 530px;">
          <div class="navone-nav">
            <template v-for="(item, index) in navlist">
              <div :key="index" :class="navindex == item.id ? 'active' : ''" @click="navindex = item.id">{{ item.name }}</div>
            </template>
          </div>
          <div v-if="navindex == 1" class="navone-info">
            <el-form :inline="true" label-width="110px">
              <el-form-item>
                <span slot="label">故障类型</span>
                <el-select v-model="maintenanceData.typeId" placeholder="请选择">
                  <el-option v-for="item in MaintenanceType" :key="item.id" :label="item.itemName" :value="item.id"></el-option>
                </el-select>
              </el-form-item>
              <el-form-item>
                <span slot="label">维修时间</span>
                <el-date-picker v-model="maintenanceData.maintainTime" type="datetime" placeholder="选择日期时间"></el-date-picker>
              </el-form-item>
              <el-form-item>
                <span slot="label">备 注</span>
                <el-input v-model="maintenanceData.remark" placeholder="请输入" class="textarea" type="textarea" resize="none" rows="10" clearable></el-input>
              </el-form-item>
            </el-form>
          </div>
          <div v-if="navindex == 2" class="navone-info">
            <el-table :header-cell-style="{ background: '#f3f6f9' }" :cell-style="{ borderRight: 'none' }" border stripe style="width:100%" :data="maintenancelist" tooltip-effect="dark">
              <el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
              <el-table-column prop="typeName" label="故障类型" width="180" align="center"></el-table-column>
              <el-table-column prop="maintainTime" label="维修时间" width="180" align="center"></el-table-column>
              <el-table-column prop="remark" label="备注" width="auto" align="center"></el-table-column>
              <el-table-column prop="updateTime" label="更新时间" width="180" align="center"></el-table-column>
            </el-table>
            <el-pagination :current-page.sync="maintenanceParam.page" :page-size="maintenanceParam.pageSize" layout="prev, pager, next, jumper" :total="maintenancetotal" @current-change="getmaintenancelist()"></el-pagination>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button class="bottom_all_two" @click="resetOtherFromDate">关 闭</el-button>
        <el-button v-if="navindex == 1" class="bottom_all" style="margin-left: 24px;" @click="submitmaintenance()">提 交</el-button>
      </span>
    </el-dialog>
    <!-- 高级搜索 -->
    <el-dialog v-dialogDrag :visible.sync="tableParamType" width="530px" :close-on-click-modal="false">
      <span slot="title" class="dialog-title">高级搜索</span>
      <div class="dialoginfo">
        <el-form ref="dialogForm" :inline="true" :model="tableParam" label-width="90px">
          <el-form-item>
            <span slot="label" style="color:  #FF0000 ;">站点名称</span>
            <el-input v-model="tableParam.stationName" placeholder="请输入" clearable></el-input>
          </el-form-item>
          <el-form-item>
            <span slot="label" style="color:  #FF0000 ;">车牌号</span>
            <el-input v-model="tableParam.plateNumber" placeholder="请输入" clearable></el-input>
          </el-form-item>
          <el-form-item>
            <span slot="label">状态</span>
            <el-select v-model="tableParam.enable" placeholder="请选择">
              <el-option label="启用" value="0"></el-option>
              <el-option label="禁用" value="1"></el-option>
            </el-select>
          </el-form-item>
        </el-form>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button class="bottom_all_two" @click="tableParamType=false,tableParam.stationName='',tableParam.plateNumber='',tableParam.enable=''">取 消</el-button>
        <el-button class="bottom_all" @click="gettableData(),tableParamType=false">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import mixin from "@/mixins/ICPSmixin.js";
import { get_station_list } from "@/api/smart/stocksake.js";
import {
  queryPage,
  batchUpdateOrDelete,
  updateSortNum,
  saveOrUpdate,
  Download,
  carMaintainQueryPage,
  carMaintainsave,
  QueryPlateNumber,
} from "@/api/basicConfig/car.js";
import { getDicType, permissionsCompanyList, getUserAutList, get_simple_organization } from "@/api/common.js";
import { getUserInfo } from "@/utils/auth.js";
export default {
  mixins: [mixin],
  data() {
    const validatePass1 = (rule, value, callback) => {
      const regExp = /(^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$)/;
      let re = new RegExp(regExp);
      if (re.test(value)) {
        callback();
      } else {
        callback(new Error("请输正确的车牌号!"));
      }
    };
    return {
      tableParamType: false,
      startTimDateEndTimDate: [],
      UserInfo: '',
      /*表格增删改查及下载接口*/
      queryPage: queryPage,
      batchUpdateOrDelete: batchUpdateOrDelete,
      updateSortNum: updateSortNum,
      saveOrUpdate: saveOrUpdate,
      DownloadURL: Download,
      /*表格数据*/
      table: [
        {
          label: "车辆自编码",
          width: "120",
          prop: "code",
          status: true,
        },
        {
          label: "车牌号",
          width: "100",
          prop: "plateNumber",
          status: true,
        },
        {
          label: "车牌类型",
          width: "120",
          prop: "carTypeName",
          status: true,
        },
        {
          label: "所属单位",
          width: "160",
          prop: "company",
          status: true,
        },
        {
          label: "站点名称",
          width: "220",
          prop: "stationName",
          status: true,
        },
        {
          label: "最大载重",
          width: "100",
          prop: "maxLoad",
          status: true,
        },
        {
          label: "皮重(吨)",
          width: "100",
          prop: "tare",
          status: true,
        },
        {
          label: "二维码",
          width: "140",
          prop: "",
          status: true,
        },
        {
          label: "状态",
          width: "100",
          prop: "",
          status: true,
        },
        {
          label: "更新时间",
          width: "160",
          prop: "updateTime",
          status: true,
        },
        {
          label: "操作",
          width: "220",
          prop: "",
          status: true,
        },
      ],
      /*表单页类型，0为无树状，1为有树状，有树状在el-main加上display:flex*/
      pagesType: 0,
      /*添加表单数据*/
      rules: {
        code: [
          { required: true, message: "请输入车辆自编码", trigger: "blur" },
        ],
        plateNumber: [
          { required: true, message: "请输入车牌号", trigger: "change" },
          { validator: validatePass1, trigger: "change", }
        ],
        carTypeId: [
          { required: true, message: "请选择车辆类型", trigger: "change" },
        ],
        stationId: [
          { required: true, message: "请选择站点", trigger: "change" },
        ],
        companyId: [
          { required: true, message: "请选择所属单位", trigger: "blur" },
        ],
        // maxLoad: [
        //   { required: true, message: "请输入最大承载", trigger: "blur" },
        // ],
        // tare: [{ required: true, message: "请输入皮重", trigger: "blur" }],
        // roughWeight: [
        //   { required: true, message: "请输入毛重", trigger: "blur" },
        // ],
      },
      fromDate: {
        roughWeight: "",
        code: "",
        plateNumber: "",
        carTypeId: "",
        carTypeName: "",
        company: "",
        companyId: "",
        stationName: "", //站点名称
        stationId: "", //站点id
        enable: 1,
        maxLoad: "",
        tare: "",
      },
      showtype: false,
      typelist: [],
      carTypelist: [],
      companylist: [],
      /*设备维护*/
      id: "",
      maintenanceDialog: false,
      navlist: [
        {
          name: "录入维修结果",
          id: 1,
        },
        {
          name: "设备维修记录",
          id: 2,
        },
      ],
      maintenanceParam: {
        page: 1,
        pageSize: 9,
      },
      maintenanceData: {
        typeId: "",
        typeName: "",
        remark: "",
        maintainTime: "",
      },
      navindex: 1,
      maintenancelist: [],
      stationIdlist: [],
      maintenancetotal: 0,
      MaintenanceType: [],
      oldplateNumber: "",
    };
  },
  async created() {
    this.UserInfo = await getUserInfo();
    this.companylist = await permissionsCompanyList();
    this.stationIdlist = await getUserAutList(true)
    this.tableParam = { ...this.tableParam, code: "", carTypeId: "", stationName: '', plateNumber: '', enable: '' };
    this.gettableData();
    this.gettypeList();
    getDicType({ code: "MaintenanceType" }).then((res) => {
      this.MaintenanceType = res.data.items;
    });
  },
  /*
   *copy(data)深拷贝数据,返回拷贝完的数据
   *gettableData获取列表数据
   *load下载
   *SortNum保持序列号
   * UpdateOrDelete禁用，启用，删除
   * submitFromDate保存更新数据
   */
  methods: {
    /**通过站点查询公司 */
    get_simple_organizationFun(id) {
      get_simple_organization({ id: id }).then((res) => {
        this.fromDate.companyId = res.data.id
        this.fromDate.company = res.data.name
      });//查询站点所属公司
    },
    /*根据公司获取站点*/
    setstationIdlist(companyId) {
      get_station_list({ parentId: companyId }).then((res) => {
        this.stationIdlist = res.data;
      });
    },
    /*类别维护*/
    gettypeList() {
      /*数据来源字典*/
      getDicType({ code: "vanType" }).then((res) => {
        this.carTypelist = res.data.items;
      });
    },
    maintenance(low) {
      this.id = low.id;
      this.maintenanceDialog = true;
      this.maintenanceData = {
        typeId: "",
        typeName: "",
        remark: "",
        maintainTime: "",
      };
      this.getmaintenancelist();
    },
    getmaintenancelist() {
      carMaintainQueryPage({ ...this.maintenanceParam, carId: this.id }).then(
        (res) => {
          this.maintenancetotal = res.data.totalRows;
          this.maintenancelist = res.data.data;
        }
      );
    },
    pagesupdateFromDate(data) {
      this.oldplateNumber = data.plateNumber;
      // this.setstationIdlist(data.companyId);
      this.updateFromDate(data, "修改");
    },
    pagesaddFromDate() {
      this.addFromDate("添加");
      this.oldplateNumber = "";
      let size = this.stationIdlist.findIndex((res) => res.id == this.UserInfo.pointIds[0])
      if (size != -1) {
        this.fromDate.stationId = this.stationIdlist[size].id
        this.fromDate.stationName = this.stationIdlist[size].name
      }
    },
    QueryPlateNumber() {
      let _this = this;
      if (_this.fromDate.plateNumber == "") {
        this.$refs.reffromDate.validateField("plateNumber");
        return;
      }
      if (this.oldplateNumber) {
        if (this.oldplateNumber !== _this.fromDate.plateNumber) {
          QueryPlateNumber({
            plateNumber: _this.fromDate.plateNumber,
          }).then((res) => {
            if (res.data) {
              this.pagessubmitFromDate();
              return;
            }
            this.$message.error("错了哦，车牌号重复");
          });
        } else {
          this.pagessubmitFromDate();
        }
      } else {
        QueryPlateNumber({
          plateNumber: _this.fromDate.plateNumber,
        }).then((res) => {
          if (res.data) {
            this.pagessubmitFromDate();
            return;
          }
          this.$message.error("错了哦，车牌号重复");
        });
      }
    },
    pagessubmitFromDate() {
      let _this = this;
      _this.$refs.reffromDate.validate((valid) => {
        if (valid) {
          _this.fromDate.carTypeName = _this.carTypelist.find(function (obj) {
            return obj.id == _this.fromDate.carTypeId;
          }) ?.itemName;
          _this.submitFromDate();
        } else {
          console.log("error submit!!");
          return false;
        }
      });
    },
    submitmaintenance() {
      this.maintenanceData.maintainTime = new Date(
        this.maintenanceData.maintainTime
      ).Format("yyyy-MM-dd hh:mm:ss");
      this.maintenanceData.typeName = this.MaintenanceType.find(
        (res) => res.id == this.maintenanceData.typeId
      ).itemName;
      carMaintainsave({ ...this.maintenanceData, carId: this.id }).then((res) => {
        if (res.code === 1001) {
          this.$message.success('录入成功')
          this.resetOtherFromDate();
        }
      });
    },
    resetOtherFromDate() {
      this.maintenanceDialog = false;
    },
    init() {
      /*重置数据*/
      this.startTimDateEndTimDate = []
      this.tableParam.carTypeId = "";
      this.tableParam.code = "";
      this.tableParam.company = "";
      this.tableParam.stationName = "";
      this.tableParam.plateNumber = "";
      this.tableParam.enable = "";
      this.gettableData();
    },
  },
};
</script>

<style lang="scss" scoped>
.dialogOtherinfo {
  .el-pagination {
    padding: 10px 0;
  }
  min-height: 530px;
  .textarea {
    width: 870px;
  }

  .el-input,
  .el-select {
    width: 375px;
  }
}
.table_link {
  margin: 0 0 0 10px;
  border: $bg_color 1px solid;
  color: $bg_color;
  border-radius: 3px;
  font-size: 14px;
  height: 30px;
  background: #ffffff;
  a {
    display: inline-block;
    line-height: 29.31px;
    color: $bg_color;
    text-decoration: none;
    font-size: 14px;
  }
}

.table_link:hover {
  color: #ffffff;
  background: $bg_color;
  a {
    color: #ffffff;
  }
}
.dialoginfo {
  .el-input,
  .el-select {
    width: 280px;
  }
}
</style>
